#include"UdpServer.hpp"
#include"UserManagement.hpp"

using namespace LogMudule;

int main()
{
    UdpServer us;
    us.InitServer();
    UserManager um;
    us.SetFunc([&um](const InetAddr &id){um.AddUser(id);},
                [&um](const InetAddr &id){um.DelUser(id);},
                [&um](const int & socketfb, const std::string &message){um.Router(socketfb,message);});

    us.Start();
    return 0;
}